<script lang="ts" setup>
import {
  HomeFilled,
  MoreFilled,
  Setting,
  List,
  GoodsFilled
} from '@element-plus/icons-vue';

// 用户侧边导航栏

</script>

<template>
  <el-menu
      active-text-color="#ffbbff"
      background-color="#2a3441"
      class="el-menu"
      default-active="1"
      text-color="#fff"
      router="router"
  >
    <el-menu-item index="/user/index">
      <el-icon><home-filled/></el-icon>
      <span>首页</span>
    </el-menu-item>

    <el-sub-menu>
      <template #title>
        <el-icon><more-filled/></el-icon>
        <span>个人中心</span>
      </template>

      <el-menu-item-group>
        <!-- 以 index 作为 path 进行路由跳转 -->
        <!--
        <el-menu-item index="/user/center/usermessage">
          <el-icon><setting/></el-icon>
          <span>个人信息</span>
        </el-menu-item>
        -->

        <el-menu-item index="/user/center/roommessage/roommanage">
          <el-icon><goods-filled/></el-icon>
          <!-- 用户客房管理页面 -->
          <span>客房信息</span>
        </el-menu-item>

        <el-menu-item index="/user/center/history">
          <el-icon><list/></el-icon>
          <span>入住历史</span>
        </el-menu-item>
      </el-menu-item-group>
    </el-sub-menu>
  </el-menu>
</template>

<style scoped>
.el-menu {
  height: 100vh;
}
</style>



